package com.sky.mapper;

import com.sky.entity.SetmealDish;
import com.sky.vo.DishItemVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetMealDishMapper {
    /**
     * 根据菜品id查询对应的套餐id
     * @param dishIds
     * @return
     */
    List<Long> getSetMealIdById(List<Long> dishIds);

    void insert(List<SetmealDish> setmealDish);


    @Select("select * from setmeal_dish where setmeal_dish.setmeal_id=#{id};")
    List<SetmealDish> getBySetmealId(Long id);
    

    void deleteBySetmealId(Long id);


}
